package org.example.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
//通过此注解我们就可以通过已sky.alioss为其中在application.yml中配置这四个属性
@Data
public class ALiOssProperties {

    @Value("${sky.alioss.access-key-id}")
    private String accessKeyId;
    @Value("${sky.alioss.access-key-secret}")
    private String accessKeySecret;
    @Value("${sky.alioss.bucket-name}")
    private String bucketName;
    @Value("${sky.alioss.endpoint}")
    private String endpoint;
}

